/* 车辆列表页面样式 */

/* 继承全局样式 */
@import url('./index.css');

/* 顶部导航栏样式 */
.admin-header {
    height: 64px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.system-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.breadcrumb-section .el-breadcrumb {
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-badge {
    cursor: pointer;
}

.notification-badge .el-button {
    font-size: 18px;
    color: #6b7280;
    padding: 8px;
}

.notification-badge .el-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.user-dropdown {
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(102, 126, 234, 0.1);
}

.username {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

/* 侧边栏菜单选中状态 */
.sidebar-menu .el-menu-item.is-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-menu .el-menu-item,
.sidebar-menu .el-submenu__title {
    height: 48px;
    line-height: 48px;
    border-radius: 0 24px 24px 0;
    margin: 2px 12px 2px 0;
    color: #6b7280;
    transition: all 0.3s ease;
}

.sidebar-menu .el-menu-item:hover,
.sidebar-menu .el-submenu__title:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 车辆概览卡片 */
.vehicle-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.overview-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.stat-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 主要内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-form .el-form-item {
    margin-bottom: 0;
}

/* 车辆列表区域 */
.vehicle-list-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 0 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 表格样式 */
.el-table {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.el-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    padding: 16px 0 !important;
}

.el-table td {
    padding: 16px 0 !important;
}

/* 标签样式 */
.el-tag {
    border-radius: 6px;
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    font-weight: 500;
}

/* 分页容器 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* 车辆详情对话框 */
.vehicle-details {
    padding: 20px;
}

.details-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.vehicle-details .el-descriptions {
    margin-bottom: 24px;
}

.vehicle-details .el-timeline {
    padding: 20px;
}

/* 通知列表 */
.notification-list {
    padding: 20px;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #EBEEF5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #303133;
}

.notification-content p {
    margin: 0 0 8px;
    color: #606266;
    font-size: 14px;
}

.notification-time {
    color: #909399;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .vehicle-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button {
        width: 100%;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form .el-form-item {
        margin-right: 0;
    }

    .vehicle-overview {
        grid-template-columns: 1fr;
    }

    .el-table {
        width: 100%;
        overflow-x: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .overview-card,
    .filter-section,
    .vehicle-list-section {
        background: #1f2937;
        border: none;
    }

    .page-header {
        background: #1f2937;
    }

    .header-right .el-button {
        background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
        border: none;
    }

    .header-right .el-button:hover {
        background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    }

    .stat-info h3,
    .vehicle-info h3 {
        color: #f3f4f6;
    }

    .el-table th {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
        color: #f3f4f6 !important;
    }

    .el-table td {
        background-color: #1f2937 !important;
        color: #f3f4f6 !important;
        border-bottom-color: #374151 !important;
    }

    .el-input__inner,
    .el-textarea__inner {
        background-color: #111827;
        border-color: #374151;
        color: #f9fafb;
    }

    .el-input__inner:focus,
    .el-textarea__inner:focus {
        border-color: #667eea;
    }

    .el-timeline-item__content {
        color: #f9fafb;
    }

    .el-timeline-item__timestamp {
        color: #9ca3af;
    }
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 20px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h1 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* 分析头部 */
.analysis-header {
    margin-bottom: 24px;
    padding: 0 20px;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-right .el-button {
    padding: 12px 24px;
    height: auto;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-right .el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.header-right .el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-right .el-button i {
    margin-right: 4px;
} 